(function(){var t=[];BX.namespace("BX.rest.integration");if(BX.rest.integration.edit){return}BX.rest.integration.edit={};function e(){this.items=null}e.prototype={init:function(){this.getItems()},getItems:function(){if(this.items){return this.items}var t=BX("rest-integration-form").querySelectorAll('[data-role="integration-hint"]');this.items=[];for(var e=0;e<t.length;e++){var i={};i.id=e;i.container=t[e];i.text=t[e].getAttribute("data-integration-hint-text");this.items.push(i)}this.loadData();return this.items},loadData:function(){for(var t=0;t<this.items.length;t++){this.addItem(this.items[t])}},addItem:function(t){var e=new i(t);e.hint=this;this.items[t.id]=e}};BX.rest.integration.edit.InitHint=e;function i(t){this.id=t.id;this.container=t.container;this.text=t.text;this.popup=null;this.init()}i.prototype={init:function(){this.addEvents()},addEvents:function(){BX.bind(this.container,"mouseenter",function(){this.getPopup().show()}.bind(this));BX.bind(this.container,"mouseleave",function(){this.getPopup().close()}.bind(this))},getPopup:function(){if(this.popup){return this.popup}this.popup=new BX.PopupWindow("integration-popup-hit-"+this.id,this.container,{className:"integration-popup-hit",darkMode:true,maxWidth:330,angle:true,content:this.text,offsetLeft:11,offsetTop:-12,bindOptions:{position:"top"},animationOptions:{show:{type:"opacity-transform"},close:{type:"opacity"}}});return this.popup}};BX.rest.integration.edit.InitHintItem=i;function n(t){this.target=t.target;this.items=t.items;this.section=t.section;this.code=t.code;this.container=null;this.init()}n.prototype={init:function(){this.loadData()},getItems:function(){return this.items},removeItem:function(t){this.items.splice(this.items.indexOf(t),1)},appendItem:function(t){var e=new r(t);e.paramControl=this;this.items[this.items.indexOf(this.getItemById(t.id))]=e},getItemById:function(t){for(var e=0;e<this.items.length;e++){if(this.items[e].id===t){return this.items[e]}}},loadData:function(){for(var t=0;t<this.items.length;t++){if(!this.items[t].id){this.items[t].id="unknown-integration-param-id-"+t}this.appendItem(this.items[t])}},addItem:function(t){this.items.push(t);this.appendItem(t);this.container.appendChild(this.getItemById(t.id).render(true))},getContainer:function(){if(this.container){return this.container}this.container=BX.create("div",{props:{className:"integration-table"}});return this.container},render:function(){for(var t=0;t<this.items.length;t++){this.getContainer().appendChild(this.items[t].render())}BX.cleanNode(this.target);this.target.appendChild(this.getContainer())}};BX.rest.integration.edit.ParamFieldsControl=n;function r(t){this.id=t.id;this.title=t.title;this.value=t.value;this.layout={container:null,title:null,titleValue:null,titleEdit:null,inputWrapper:null,input:null,remove:null};this.editMode=false;this.init()}r.prototype={init:function(){this.addEvents()},addEvents:function(){BX.bind(window,"click",function(t){if(t.target===this.layout.titleEdit){this.setEditMode();return}var e=t.target.closest(".integration-table-title");if(!e||t.target!==this.layout.title){if(this.editMode){if(e!==this.layout.title){this.resetEditMode();if(this.layout.titleInput.value.length===0){this.returnTitle()}else{this.updateTitle()}}}else{this.resetEditMode()}}}.bind(this))},getTitle:function(){if(this.layout.title){return this.layout.title}this.layout.title=BX.create("div",{props:{className:"integration-table-title"}});this.layout.titleValue=BX.create("div",{props:{className:"integration-table-title-value"},text:this.title});this.layout.titleEdit=BX.create("div",{props:{className:"integration-table-title-edit"},events:{click:function(){this.setEditMode();this.layout.titleInput.focus()}.bind(this)}});this.layout.titleInput=BX.create("input",{props:{type:"text",className:"integration-table-title-input",value:this.title,name:"QUERY["+this.paramControl.code+"][ITEMS][title][]"},events:{keydown:function(t){if(t.code==="Escape"){this.resetEditMode();this.returnTitle()}if(t.code==="Enter"){if(this.layout.titleInput.value.length===0){this.resetEditMode();this.returnTitle();return}this.resetEditMode();this.updateTitle()}}.bind(this)}});this.layout.title.appendChild(this.layout.titleValue);this.layout.title.appendChild(this.layout.titleEdit);this.layout.title.appendChild(this.layout.titleInput);return this.layout.title},getInput:function(){if(this.layout.inputWrapper){return this.layout.inputWrapper}this.layout.inputWrapper=BX.create("div",{props:{className:"ui-ctl ui-ctl-textbox ui-ctl-w100"}});if(typeof this.value==="undefined"){this.value=""}this.layout.input=BX.create("input",{props:{type:"text",className:"ui-ctl-element",value:this.value,name:"QUERY["+this.paramControl.code+"][ITEMS][value][]"},events:{blur:function(){BX.rest.integration.edit.makeCurlString()}.bind(this)}});this.layout.inputWrapper.appendChild(this.layout.input);return this.layout.inputWrapper},getRemove:function(){if(this.layout.remove){return this.layout.remove}this.layout.remove=BX.create("div",{props:{className:"integration-table-td-remove"},events:{click:function(){this.remove();this.paramControl.removeItem(this)}.bind(this)}});return this.layout.remove},remove:function(){var t;if(this.paramControl.getItems().indexOf(this)===0){t=true}this.layout.container.style.height=this.layout.container.offsetHeight+"px";BX.addClass(this.layout.container,"integration-table-row-hide");setTimeout(function(){this.layout.container.style.height="0px";this.layout.container.style.paddingTop="0px";if(t){this.layout.container.style.marginBottom="-30px"}}.bind(this),250);setTimeout(function(){this.layout.container.parentNode.removeChild(this.layout.container);BX.rest.integration.edit.makeCurlString()}.bind(this),500)},setEditMode:function(){this.editMode=true;BX.addClass(this.layout.title,"integration-table-title-edit-mode")},resetEditMode:function(){this.editMode=false;BX.removeClass(this.layout.title,"integration-table-title-edit-mode")},updateTitle:function(){this.title=this.layout.titleInput.value;this.layout.titleValue.innerText=this.layout.titleInput.value;BX.rest.integration.edit.makeCurlString()},returnTitle:function(){this.layout.titleInput.value=this.layout.titleValue.innerText},render:function(t){if(this.layout.container){return this.layout.container}this.layout.container=BX.create("div",{props:{className:t?"integration-table-row integration-table-row-show":"integration-table-row"},children:[BX.create("div",{props:{className:"integration-table-cell"},children:[this.getTitle()]}),BX.create("div",{props:{className:"integration-table-cell"},children:[this.getInput()]}),BX.create("div",{props:{className:"integration-table-cell"},children:[this.getRemove()]})]});if(t){setTimeout(function(){BX.removeClass(this.layout.container,"integration-table-row-show")}.bind(this),450)}return this.layout.container}};BX.rest.integration.edit.ParamFieldsControlItem=r;function o(){this.items=[]}o.prototype={init:function(){var t=BX("rest-integration-form").querySelectorAll('[data-role="integration-tab"]');for(var e=0;e<t.length;e++){var i={};i.id=e;i.container=t[e];i=new a(i);this.items.push(i);if(i.container.className.replace(/[\n\t]/g," ").indexOf("integration-tab-auto-open")>-1){i.openTab()}}}};BX.rest.integration.edit.InitTabs=o;function a(t){this.id=t.id;this.container=t.container;this.layout={title:null,container:null,wrapper:null,checkbox:null};this.open=false;this.init()}a.prototype={init:function(){this.initTitle();this.initWrapper();this.initContainer();this.initCheckbox()},setAutoHeight:function(){this.layout.wrapper.style.height=null;this.layout.wrapper.classList.add("integration-tab-wrapper-height-auto");BX.unbind(this.layout.wrapper,"transitionend",this.setAutoHeight.bind(this))},openTab:function(t){if(t){BX.bind(this.layout.wrapper,"transitionend",this.setAutoHeight.bind(this))}else{BX.bind(this.layout.wrapper,"transitionend",function(){this.layout.wrapper.style.height=null;this.layout.wrapper.classList.add("integration-tab-wrapper-height-auto");BX.unbindAll(this.layout.wrapper)}.bind(this))}this.open=true;BX.addClass(this.container,"integration-tab-open");if(this.layout.checkbox!==null){this.layout.checkbox.checked=true}var e=this.container.querySelectorAll(".integration-required");if(e.length>0){e.forEach((function(t){t.required=true}))}this.layout.wrapper.style.height=this.layout.container.offsetHeight+"px"},closeTab:function(){this.layout.wrapper.style.height=this.layout.wrapper.offsetHeight+"px";this.layout.wrapper.classList.remove("integration-tab-wrapper-height-auto");var t=this.container.querySelectorAll("input[type=url]");t.forEach((function(t){t.value=""}));this.open=false;BX.removeClass(this.container,"integration-tab-open");BX.addClass(this.container,"integration-tab-close");var e=this.container.querySelectorAll(".integration-required");if(e.length>0){e.forEach((function(t){t.required=false}))}setTimeout(function(){this.layout.wrapper.style.height=0;BX.removeClass(this.container,"integration-tab-close");this.layout.checkbox.checked=false}.bind(this),200)},initWrapper:function(){this.layout.wrapper=this.container.querySelector(".integration-tab-wrapper")},initCheckbox:function(){this.layout.checkbox=this.container.querySelector(".integration-tab-checkbox")},initContainer:function(){this.layout.container=this.container.querySelector(".integration-tab-container")},initTitle:function(){this.layout.title=this.container.querySelector(".integration-tab-title");BX.bind(this.layout.title,"click",function(){if(this.open){this.closeTab()}else{this.openTab(true);BX.bind(this.layout.wrapper,"animationend",function(){this.scrollToItem(this.container);BX.unbindAll(this.layout.wrapper)}.bind(this))}}.bind(this))},scrollToItem:function(t){if(window.safari){var e=document.body,i=document.documentElement,n=window.pageYOffset,r;var o=setInterval((function(){r=Math.max(e.scrollHeight,e.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);n+=10;window.scrollTo(0,n);if(n>=i.scrollTop+i.clientHeight){clearInterval(o)}}),10);return}window.scrollTo({top:BX.pos(t).top,behavior:"smooth"})}};BX.rest.integration.edit.InitTabsItem=a;BX.rest.integration.edit.makeCurlString=function(){BX.rest.integration.edit.setMethodLink();var e=BX("rest-integration-form").querySelector("#webhookURL");if(typeof t==="object"&&e!==null){var i,n,r;for(var o in t){r="";if(t.hasOwnProperty(o)&&typeof t[o]["items"]==="object"&&t[o]["items"].length>0){for(var a=0;a<t[o]["items"].length;a++){if(r!==""){r+="&"}r+=t[o]["items"][a]["title"]+"=";if(typeof t[o]["items"][a]["layout"]["input"]["value"]==="string"){r+=t[o]["items"][a]["layout"]["input"]["value"]}}}i=BX("rest-integration-form").querySelector('.integration-webhook-method-api-select input[name="QUERY['+o+'][METHOD]"]');n=BX("rest-integration-form").querySelector('.integration-curl-uri[data-key="'+o+'"]');if(i!==null&&n!==null){if(r!==""){r="?"+r}n.value=e.value+i.value+".json"+r}}}};BX.rest.integration.edit.setMethodLink=function(){BX("rest-integration-form").querySelectorAll(".integration-method-url").forEach((function(t){var e=BX("rest-integration-form").querySelector('input[name="QUERY['+t.dataset.key+'][METHOD]"]');if(e!==null){BX.adjust(t,{props:{href:restIntegrationEditComponent.uriToMethodInfo+e.value}})}}))};BX.rest.integration.edit.inputApiOnlyChange=function(){var t=BX("rest-integration-form").querySelector('#rest-integration-form input[name="APPLICATION_ONLY_API"]');if(t!==null){var e=BX("rest-integration-form").querySelectorAll("#applicationLang .integration-required-lang");if(!t.checked){BX.show(BX("applicationLang"));e.forEach((function(t){t.required=true}))}else{BX.hide(BX("applicationLang"));e.forEach((function(t){t.required=false}));var i=BX("rest-integration-form").querySelector('#rest-integration-form #applicationType input[value="SERVER"]');if(i!==null){if(!i.checked){i.checked=true;BX.fireEvent(i,"change")}}}}};BX.rest.integration.edit.initParams=function(){this.savedDo=false;var e=new BX.rest.integration.edit.InitTabs;var i=new BX.rest.integration.edit.InitHint({items:BX("rest-integration-form").querySelectorAll('[data-role="integration-hint"]')});BX.rest.integration.edit.inputApiOnlyChange();BX.bind(BX("rest-integration-form"),"submit",BX.delegate(BX.rest.integration.edit.actionSaveForm,this));var r=BX("rest-integration-form").querySelectorAll("#rest-integration-form .integration-post-open");if(r.length>0){for(var o=0;o<r.length;o++){BX.bind(r[o],"click",BX.delegate(BX.rest.integration.edit.openPostUri,this))}}r=BX("rest-integration-form").querySelectorAll("#rest-integration-form .integration-example-url");if(r.length>0){for(var a=0;a<r.length;a++){BX.bind(r[a],"click",BX.delegate(BX.rest.integration.edit.openUri,this))}}BX.bind(BX("rest-integration-form").querySelector('#rest-integration-form input[name="APPLICATION_ONLY_API"]'),"change",BX.delegate(BX.rest.integration.edit.inputApiOnlyChange,this));BX("rest-integration-form").querySelectorAll("#rest-integration-form .integration-curl-uri-button").forEach((function(t){BX.bind(t,"click",BX.rest.integration.edit.actionCurlQuery)}));BX("rest-integration-form").querySelectorAll("#rest-integration-form .integration-action-dropdown").forEach((function(t){BX.bind(t,"click",BX.rest.integration.edit.actionDropdown)}));BX("rest-integration-form").querySelectorAll("#rest-integration-form #applicationType input").forEach((function(t){BX.bind(t,"change",BX.rest.integration.edit.changeAppType)}));BX.bind(BX("rest-integration-form").querySelector("#rest-integration-form #integrationSaveBot"),"click",BX.delegate(BX.rest.integration.edit.actionSaveBtnClick,this));BX.bind(BX("rest-integration-form").querySelector("#rest-integration-form #integrationGenerateWebhook"),"click",BX.delegate(BX.rest.integration.edit.actionSaveRegenBtnClick,this));BX.bind(BX("rest-integration-form").querySelector('#rest-integration-form input[name="APP_ZIP"]'),"change",BX.delegate(BX.rest.integration.edit.loadFileApplication,this));BX.addCustomEvent("SidePanel.Slider:onClose",this.onCloseSlider.bind(this));if(typeof restIntegrationEditComponent==="object"&&typeof restIntegrationEditComponent.queryProps==="object"){var s;for(var l in restIntegrationEditComponent.queryProps){if(restIntegrationEditComponent.queryProps.hasOwnProperty(l)){s=restIntegrationEditComponent.queryProps[l].CODE;t[s]=new n({target:document.getElementById("integration-webhook-param-"+s),items:restIntegrationEditComponent.queryProps[l].ITEMS,section:restIntegrationEditComponent.queryProps[l].TITLE,code:restIntegrationEditComponent.queryProps[l].CODE});t[s].render();BX.bind(BX("integration-webhook-add-param-"+s),"click",(function(){var e=this.dataset.key;t[e].addItem({id:"newparam"+Math.random(),title:"NEW_PARAM"});BX.rest.integration.edit.makeCurlString()}))}}BX.rest.integration.edit.makeCurlString()}i.init();e.init()};BX.rest.integration.edit.onCloseSlider=function(t){var e=t.getSlider();if(!!restIntegrationEditComponent.needConfirmCloseSliderWithDelete&&(typeof e.data.NEW_OPEN==="undefined"||e.data.NEW_OPEN!=="N")){this.popupWindow=BX.PopupWindowManager.create("rest-integration-edit-on-slider-close",null,{content:BX.message("REST_INTEGRATION_EDIT_CLOSE_SLIDER_CLOSE"),titleBar:BX.message("REST_INTEGRATION_EDIT_CLOSE_SLIDER_CLOSE_TITLE"),width:400,height:200,padding:10,closeByEsc:false,contentColor:"white",angle:false,buttons:[new BX.PopupWindowButton({text:BX.message("REST_INTEGRATION_EDIT_CLOSE_SLIDER_YES"),className:"popup-window-button-accept",events:{click:function(){BX.ajax.runComponentAction("bitrix:rest.integration.edit","delete",{mode:"class",signedParameters:restIntegrationEditComponent.signetParameters,data:{},analyticsLabel:{type:"integrationDownloadExample",integrationCode:restIntegrationEditComponent.integrationCode}}).then((function(t){e.data={close:true};e.close()}))}}}),new BX.PopupWindowButton({text:BX.message("REST_INTEGRATION_EDIT_CLOSE_SLIDER_CANCEL"),className:"popup-window-button-cancel",events:{click:function(){this.popupWindow.close()}}})]}).show();if(typeof e.data.close==="undefined"||e.data.close===false){t.denyAction()}}};BX.rest.integration.edit.loadFileApplication=function(t){if(t.target.files.length>0&&t.target.files[0]["size"]>0){var e=BX("rest-integration-form").querySelector("#applicationZip .ui-ctl-label-text");BX.cleanNode(e);e.textContent=t.target.files[0]["name"]}else{BX.UI.Notification.Center.notify({content:BX.message("REST_INTEGRATION_EDIT_TAB_APPLICATION_ZIP_INPUT_LABEL")})}};BX.rest.integration.edit.changeAppType=function(t){var e,i,n;var r=t.target.value;var o=BX("rest-integration-form").querySelector("#applicationServer");var a=BX("rest-integration-form").querySelector("#applicationZip");var s=BX("rest-integration-form").querySelector('#rest-integration-form input[name="APPLICATION_ONLY_API"]');if(r==="ZIP"){BX.hide(o);BX.show(a);e=a.querySelectorAll(".integration-required");i=o.querySelectorAll(".integration-required");n=o.querySelectorAll("input");s.checked=false;BX.fireEvent(s,"change")}else{BX.hide(a);BX.show(o);e=o.querySelectorAll(".integration-required");i=a.querySelectorAll(".integration-required");n=a.querySelectorAll("input");var l=BX("rest-integration-form").querySelector("#applicationZip .ui-ctl-label-text");if(l){BX.cleanNode(l);l.textContent=BX.message("REST_INTEGRATION_EDIT_TAB_APPLICATION_ZIP_INPUT_LABEL")}}if(e.length>0){e.forEach((function(t){t.required=true}))}if(i.length>0){i.forEach((function(t){t.required=false}))}if(n.length>0){n.forEach((function(t){t.value="";if(t.type==="file"){t.type="text";t.type="file"}}))}};BX.rest.integration.edit.actionDropdown=function(){var t;var e=this.dataset.id;var i=this.dataset.selector;var n=this.dataset.required;var r=BX.hasClass(this,"active")===true;if(r){BX.removeClass(this,"active")}else{BX.addClass(this,"active")}BX("rest-integration-form").querySelectorAll("#"+e+" ."+i).forEach((function(e){if(r){t=BX.findChild(e,{tag:"input"},true);if(t.value===""&&BX.hasClass(t,n)===false){BX.addClass(e,"hidden")}}else{BX.removeClass(e,"hidden")}}))};BX.rest.integration.edit.actionCurlQuery=function(){if(restIntegrationEditComponent.hasOwnProperty("pathIframe")&&restIntegrationEditComponent.pathIframe!==""){var t=BX("rest-integration-form").querySelector('input[data-key="'+this.dataset.key+'"]');if(t!==null){var e="type=integrationRun";if(restIntegrationEditComponent.hasOwnProperty("integrationCode")&&restIntegrationEditComponent.integrationCode!==""){e+="&integrationCode="+restIntegrationEditComponent.integrationCode}BX.SidePanel.Instance.open(restIntegrationEditComponent.pathIframe+"?"+e,{requestMethod:"post",requestParams:{query:t.value,sessid:BX.bitrix_sessid()},allowChangeHistory:false,cacheable:false})}}};BX.rest.integration.edit.actionSaveBtnClick=function(){BX.rest.integration.edit.savedDo=false;BX("integration-save-mode").value="SAVE";BX.submit(BX("rest-integration-form"),"save","Y",(function(){if(!BX.rest.integration.edit.savedDo){BX.removeClass(BX("ui-button-panel-save"),"ui-btn-wait")}}))};BX.rest.integration.edit.actionSaveRegenBtnClick=function(){BX.addClass(BX("integrationGenerateWebhook"),"ui-btn-wait");BX.UI.Dialogs.MessageBox.show({message:BX.create("div",{children:[BX.create("p",{text:BX.message("REST_INTEGRATION_EDIT_CONFIRM_POPUP_DESCRIPTION")})]}),title:BX.message("REST_INTEGRATION_EDIT_CONFIRM_POPUP_TITLE"),popupOptions:{closeIcon:true},modal:true,bindElement:BX(this.id),buttons:[new BX.UI.Button({color:BX.UI.Button.Color.PRIMARY,state:BX.UI.Button.State.ACTIVE,text:BX.message("REST_INTEGRATION_EDIT_CONFIRM_POPUP_BTN_CONTINUE"),onclick:BX.delegate((function(t){BX("integration-save-mode").value="GEN_SAVE";BX.submit(BX("rest-integration-form"),"SAVE","Y",(function(){BX.removeClass(BX("integrationGenerateWebhook"),"ui-btn-wait");BX.removeClass(BX("ui-button-panel-save"),"ui-btn-wait")}));t.context.close()}),this)}),new BX.UI.CancelButton({events:{click:function(){BX.removeClass(BX("integrationGenerateWebhook"),"ui-btn-wait");BX.removeClass(BX("ui-button-panel-save"),"ui-btn-wait");this.getContext().close()}}})]})};BX.rest.integration.edit.openPostUri=function(t){t.preventDefault();var e=document.getElementById("rest-integration-form");var i=e.querySelector('input[name="sessid"]');i.value="";e.setAttribute("action",t.target.href);e.setAttribute("target","_blank");e.submit();e.setAttribute("action","");e.setAttribute("target","");i.value=BX.bitrix_sessid()};BX.rest.integration.edit.openUri=function(t){if(restIntegrationEditComponent.hasOwnProperty("integrationCode")&&restIntegrationEditComponent.integrationCode!==""){BX.ajax.runComponentAction("bitrix:rest.integration.edit","analytic",{mode:"class",signedParameters:restIntegrationEditComponent.signetParameters,data:{},analyticsLabel:{type:"integrationDownloadExample",integrationCode:restIntegrationEditComponent.integrationCode}})}};BX.rest.integration.edit.actionSaveForm=function(t){t.preventDefault();var e=BX("rest-integration-form").querySelector('#rest-integration-form #applicationType input[value="ZIP"]');if(e!==null&&!!e.checked){var i=BX("rest-integration-form").querySelector('#applicationZip input[type="file"]');if(i!==null&&(!(i.files.length>0)||!(i.files[0]["size"]>0))){BX.UI.Notification.Center.notify({content:BX.message("REST_INTEGRATION_EDIT_TAB_APPLICATION_ZIP_NO_FILE")});return false}}BX.rest.integration.edit.savedDo=true;BX.addClass(BX("ui-button-panel-save"),"ui-btn-wait");var n=BX("rest-integration-form-error");n.style.display="none";BX.cleanNode(n);var r=BX("rest-integration-form").querySelectorAll('input[type="url"]');r.forEach((function(t){t.type="text"}));var o={mode:"class",c:"bitrix:rest.integration.edit",action:"saveData"};var a="/bitrix/services/main/ajax.php?"+BX.ajax.prepareData(o);BX.ajax.submitAjax(BX("rest-integration-form"),{method:"POST",url:a,processData:true,data:{signedParameters:restIntegrationEditComponent.signetParameters},onsuccess:function(t){t=BX.parseJSON(t,{});if(typeof t.data=="object"&&t.data.status===true){var e=BX.SidePanel.Instance.getTopSlider();e.data={NEW_OPEN:"N"};e.reload()}else{if(!!t.data.helperCode&&t.data.helperCode!==""){top.BX.UI.InfoHelper.show(t.data.helperCode)}else{if(!!t.data.errors){t.data.errors.forEach((function(t){n.style.display="block";BX.ready((function(){BX.append(BX.create("div",{props:{className:"ui-alert ui-alert-danger"},children:[BX.create("span",{className:"ui-alert-message",text:t})]}),n)}))}))}}BX.scrollToNode(BX("pagetitle"))}BX.removeClass(BX("ui-button-panel-save"),"ui-btn-wait");r.forEach((function(t){t.type="url"}))}})}})(window);BX.ready((function(){BX.rest.integration.edit.initParams()}));
//# sourceMappingURL=script.map.js